import request from '@/utils/request';

/**
 * 查询放行记录列表
 * @param query
 * @returns {*}
 */
export function listGather(query) {
  return request({
    url: '/kmwlpts/gather/list',
    method: 'get',
    params: query
  })
}


/**
 * 查询放行记录列表
 * @param query
 * @returns {*}
 */
export function listGatherManiId(query) {
  return request({
    url: '/kmwlpts/gather/listManiId',
    method: 'get',
    params: query
  })
}

/**
 * 放行记录统计
 * @param query
 * @returns {*}
 */
export function getGatherCount(query) {
  return request({
    url: '/kmwlpts/gather/count',
    method: 'get',
    params: query
  })
}

/**
 * 查询放行列表详情
 * @param Id
 * @returns {*}
 */
export function getGatherById(Id) {
  return request({
    url: 'kmwlpts/gather/' + Id,
    method: 'get'
  })
}

/**
 * 通过ID查询放行记录列表
 * @param ids
 * @returns {*}
 */
export function listGatherByIds(ids) {
  return request({
    url: '/kmwlpts/gather/listByIds/' + ids,
    method: 'get'
  })

}


// 删除IC卡备案管理
export function delGather(id) {
  return request({
    url: '/kmwlpts/gather/' + id,
    method: 'delete'
  })
}

// 互市过卡记录同步二级市场
export function syncToAppGather(id) {
  return request({
    url: '/kmwlpts/gather/syncToApp/' + id,
    method: 'post'
  })
}


/**
 * 查询边民互市放行记录列表
 * @param query
 * @returns {*}
 */
export function listGatherBt(query) {
  return request({
    url: '/kmwlpts/gather/listBt',
    method: 'get',
    params: query
  })
}

/**
 * 边民互市放行记录统计
 * @param query
 * @returns {*}
 */
export function getGatherCountBt(query) {
  return request({
    url: '/kmwlpts/gather/countBt',
    method: 'get',
    params: query
  })
}
